import os

LIBS_DIR = os.environ['LIBS_DIR'];

#sources = Glob('*.c') + Glob('*.S')
sources = [
    'pixman-access.c',
    'pixman-edge.c',
    'pixman-image.c',
    'pixman-region32.c',
    'pixman-arm.c',
    'pixman-implementation.c',
    'pixman-noop.c',
    'pixman-solid-fill.c',
    'pixman-bits-image.c',
    'pixman-fast-path.c',
    'pixman-trap.c',
    'pixman.c',
    'pixman-matrix.c',
    'pixman-utils.c',
    'pixman-combine32.c',
    'pixman-combine-float.c',
    'pixman-general.c',
    'pixman-glyph.c',
    'pixman-linear-gradient.c',
    'pixman-radial-gradient.c',
    'pixman-gradient-walker.c'
]

env=DefaultEnvironment().Clone()
env.Library(os.path.join(LIBS_DIR, 'pixman'), sources,
            CCFLAGS = env['CCFLAGS'] + ' -DHAVE_CONFIG_H -fPIC')
